import {get, post, del, put} from "@/apis/http/request";
import {ProxyMechanismGroom} from "@/apis/model/proxy/ProxyMechanismGroomModel";

/**
* 得到列表
* @param params
*/
export const getProxyMechanismGroomList = (params: any) => get("/proxyMechanismGroom/list", params)

/**
* 得到分页列表
* @param params
*/
export const proxyMechanismGroomPage = (params: any) => post("/proxyMechanismGroom/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteProxyMechanismGroomById = (id: number) => del("/proxyMechanismGroom/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertProxyMechanismGroom = (param: ProxyMechanismGroom) => post("/proxyMechanismGroom", param)

/**
* 更新数据
* @param param
*/
export const updateProxyMechanismGroom = (param: ProxyMechanismGroom) => put("/proxyMechanismGroom", param)